package com.atguigu.springcloud.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.UUID;

/**
 * @Author: EngSr
 * @Date: 2021/1/5 1:04
 * @Description:
 */
@Api(tags = "zookeeper")
@RestController
@Slf4j
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @ApiOperation("zookeeper")
    @RequestMapping(value = "/payment/zk")
    public String paymentzk(){

        return "springcloud with zookeeper: "+ serverPort+ "\t"+ UUID.randomUUID().toString();
    }

}
